package com.dailyblue.example.spring.aop.annotation;

import com.dailyblue.example.spring.aop.annotation.target.SecondTarget;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
@Configuration
@EnableAspectJAutoProxy
public class App {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("com.dailyblue.example.spring.aop.annotation");
        SecondTarget target = context.getBean(SecondTarget.class);
        target.findById(1);
    }
}
